package flyweight;

public class ConcreteWebSite extends WebSite {
    /**
     * 内部状态
     */
    public String type;

    @Override
    public void use(User user) {
        System.out.println("网站类型为："+type+"正在使用者为："+user.getName());
    }

    public ConcreteWebSite(String type) {
        this.type = type;
    }
}
